<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>用户登录</title>
<!--                       CSS                       -->
<!-- Reset Stylesheet -->
<link rel="stylesheet" href="css/reset.css" type="text/css" media="screen" />
<!-- Main Stylesheet -->
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" />
<!-- Invalid Stylesheet. This makes stuff look pretty. Remove it if you want the CSS completely valid -->
<link rel="stylesheet" href="css/invalid.css" type="text/css" media="screen" />
<!--                       Javascripts                       -->
<!-- jQuery -->
<script type="text/javascript" src="scripts/jquery-1.3.2.min.js"></script>
<!-- jQuery Configuration -->
<script type="text/javascript" src="scripts/simpla.jquery.configuration.js"></script>
<!-- Facebox jQuery Plugin -->
<script type="text/javascript" src="scripts/facebox.js"></script>
<!-- jQuery WYSIWYG Plugin -->
<script type="text/javascript" src="scripts/jquery.wysiwyg.js"></script>
</head>
<body id="login">
<div id="login-wrapper" class="png_bg">
  <div id="login-top">
    <h1>用户登录</h1>
    <!-- Logo (221px width) -->
    <a href="#"><img id="logo" src="images/logo.png" alt="Simpla Admin logo" /></a> </div>
  <!-- End #logn-top -->
  <div id="login-content">
  	<%-- 非空验证 --%>
  	<s:if test="#request.fieldErrors.size>0">
	<div class="notification information png_bg">
		<div><s:fielderror/></div>
	</div>
	</s:if>
	
	<%-- 登录信息错误 --%>
	<s:if test="#request.actionMessages.size>0">
	<div class="notification error png_bg">
		<div><s:actionmessage/></div>
	</div>
	</s:if>
    <s:form action="userLogin" namespace="/admin">
      
      <p>
        <label>用户名</label>
        <s:textfield cssClass="text-input" name="user.login" value="admin"/>
      </p>
      <div class="clear"></div>
      <p>
        <label>密&nbsp;&nbsp;码</label>
        <s:password cssClass="text-input" name="user.pwd"/>
      </p>
      <div class="clear"></div>
      <p id="remember-password"><input type="checkbox" id="remeber"/>保存登录信息</p>
      <div class="clear"></div>
      <p>
        <input class="button" type="submit" value="登  录" />
      </p>
    </s:form>
  </div>
  <!-- End #login-content -->
</div>
<!-- End #login-wrapper -->
</body>
</html>
